/* 用户进度页面样式 */
.user-progress-container {
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

/* 进度条容器 */
.progress-container {
  background: linear-gradient(135deg, #b2e7e3 0%, #9aeb6f 30%, #e0ef11 60%, #f26907 100%);
  border-radius: 16rpx;
  padding: 20rpx;
  box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.12);
  margin-bottom: 24rpx;
  width: calc(100% - 40rpx);
  position: relative;
  overflow: hidden;
  height: 88rpx;
  overflow: hidden;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rpx;
  background: linear-gradient(90deg, #0ef1de 0%, #61f511 30%, #e9f904 60%, #f04b05 100%);
}

.progress-step-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10rpx;
}


/* 进度条 */
.progress {
  height: 24rpx;
  background-color: #f5f5f5;
  border-radius: 12rpx;
  overflow: hidden;
  margin-top: 12rpx;
}


.progress-bar {
  height: 100%;
  background-color: #96f151;
  border-radius: 12px;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: #f80303;
}

.progress-car-icon {
  position: absolute;
  top: 50%;
  font-size: 24px;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 流程步骤列表 */
.process-steps-list {
  display: flex;
  height: auto;
  margin-bottom: 20rpx;
  flex-direction: column;
  gap: 20rpx;
  padding: 0 20rpx;
  overflow: auto;
}

/* 步骤卡片样式 */
.process-step-card {
  border-radius: 16rpx;
  border: none;
  width: 100%;
  cursor: pointer;
  margin-bottom: 16rpx;
  box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: white;
  transform: translateY(0);
  height: fit-content;
  padding: 20px;
}

.process-step-card:active {
  transform: scale(0.98);
}

.process-step-card.completed {
  border-left: none;
  background: linear-gradient(to right, rgba(76, 175, 80, 0.05), white);
}

.process-step-card.processing {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: none;
  background: linear-gradient(to right, rgba(244, 67, 54, 0.05), white);
}

.process-step-card.completed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4rpx;
  height: 100%;
  background: linear-gradient(to bottom, #4CAF50, #8BC34A);
}

.process-step-card.processing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4rpx;
  height: 100%;
  background: linear-gradient(to bottom, #F44336, #FF9800);
}

.process-step-content {
  padding: 20rpx 24rpx;
  font-size: 24px;
  width: calc(100% - 10rpx);
  display: flex;
  align-items: center;
}

.process-step-number {
  width: 75rpx;
  height: 75rpx;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* 水满溢出动画 */
@keyframes waterOverflow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1.01); }
  50% { transform: translateY(-5rpx) scale(1.02); }
}

.process-step-card:active {
  transform: scale(0.98);
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 8rpx 15rpx rgba(0,0,0,0.1);
}

@keyframes dropSplash {
  0% { top: -20rpx; right: 30rpx; opacity: 0; }
  40% { top: 20rpx; right: 30rpx; opacity: 1; }
  100% { top: 100rpx; right: 30rpx; opacity: 0; }
}

.water-overflow::after {
  content: '';
  position: absolute;
  width: 15rpx;
  height: 15rpx;
  background: #8af879;
  border-radius: 50%;
  animation: dropSplash 1s ease-out forwards;
}

.animate-water-fill {
  animation: waterOverflow 1s ease-in-out forwards;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.process-step-number-completed {
  background: linear-gradient(135deg, #88f79b 0%, #06b212 100%);
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(167, 234, 171, 0.613);
}
.process-step-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}
.process-step-number-processing {
  background: linear-gradient(135deg, #dfba84 0%, #d64316 100%);
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(245, 208, 154, 0.692);
}

.process-step-number-pending {
  background: linear-gradient(135deg, #fbdfdf 0%, #827b7b 100%);
  color: #101010;
}

.process-step-icon {
  transition: transform 0.3s ease;
  margin: 0 20rpx;
}

.process-step-card:active .process-step-icon {
  transform: scale(1.3);
}

.process-step-title {
  flex: 1;
  font-size: 36px;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16rpx;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.process-step-card.completed .process-step-title {
  color: #2E7D32;
}

.process-step-card.processing .process-step-title {
  color: #C62828;
}

.process-step-completed-time {
  font-size: 16px;
  color: #C0C0C0;
  margin-right: 10rpx;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-step-detail {
  color: #2196F3;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 16px;
}

.process-step-detail:active {
  color: #0570c8;
  font-weight: 600;
}

.process-step-complete-action {
  color: #0ac107;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  margin-right: 16rpx;
}

/* 步骤操作按钮样式 */
.process-step-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  margin-right: 20rpx;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header {
    padding: 12rpx;
  }

  .process-step-content {
    padding: 16rpx;
  }

  .progress-container {
    padding: 12rpx;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10rpx); }
  to { opacity: 1; transform: translateY(0); }
}

.process-steps-list > view {
  animation: fadeIn 0.5s ease forwards;
}

.process-steps-list > view:nth-child(1) { animation-delay: 0.1s; }
.process-steps-list > view:nth-child(2) { animation-delay: 0.2s; }
.process-steps-list > view:nth-child(3) { animation-delay: 0.3s; }
.process-steps-list > view:nth-child(4) { animation-delay: 0.4s; }
.process-steps-list > view:nth-child(5) { animation-delay: 0.5s; }
.process-steps-list > view:nth-child(6) { animation-delay: 0.6s; }

/* 已完成步骤装饰 */
.process-step-card.completed::after {
  content: '';
  position: absolute;
  top: -15rpx;
  right: -15rpx;
  width: 60rpx;
  height: 60rpx;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  z-index: 0;
  animation: pulse 3s ease-in-out infinite;
}

/* 淡绿色小圆圈装饰 - 气球效果 */
.process-step-card.completed {
  position: relative;
}

.process-step-card.completed .process-step-content {
  position: relative;
  z-index: 1;
}

/* 装饰性小圆圈 - 气球效果 */
.process-step-card.completed::before {
  content: '';
  position: absolute;
  top: 20rpx;
  right: 40rpx;
  width: 20rpx;
  height: 20rpx;
  background-color: rgba(138, 248, 121, 0.6);
  border-radius: 50%;
  z-index: 0;
  box-shadow: 0 0 10rpx rgba(138, 248, 121, 0.4);
  animation: floatBalloon 4s ease-in-out infinite;
}

/* 第二个小圆圈 */
.process-step-card.completed::after {
  content: '';
  position: absolute;
  top: -15rpx;
  right: -15rpx;
  width: 60rpx;
  height: 60rpx;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  z-index: 0;
  animation: pulse 3s ease-in-out infinite;
}

/* 第三个小圆圈 */
.process-step-card.completed .process-step-content::before {
  content: '';
  position: absolute;
  bottom: 20rpx;
  right: 80rpx;
  width: 15rpx;
  height: 15rpx;
  background-color: rgba(138, 248, 121, 0.5);
  border-radius: 50%;
  z-index: 0;
  animation: floatBalloon 3s ease-in-out infinite 0.5s;
}

/* 第四个小圆圈 */
.process-step-card.completed .process-step-content::after {
  content: '';
  position: absolute;
  top: 50rpx;
  right: 120rpx;
  width: 12rpx;
  height: 12rpx;
  background-color: rgba(138, 248, 121, 0.4);
  border-radius: 50%;
  z-index: 0;
  animation: floatBalloon 5s ease-in-out infinite 1s;
}

/* 气球浮动动画 */
@keyframes floatBalloon {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-15rpx) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

/* 表情图标样式 */
.progress-container .text-yellow-500 {
  font-size: 40rpx;
  transition: transform 0.3s ease;
  margin: 0 20rpx;
}

.progress-container:active .text-yellow-500 {
  transform: scale(1.5) rotate(15deg);
}

/* 空状态样式 */
.empty-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400rpx;
}
